<div class="title">
	<span>Add Product</span>
	<div class="clear">&nbsp;</div>
</div>


<div class="margin">
<?php 
	echo $this->upload->display_errors('<div class="error">', '</div>');
	flash(); //display flash data 
?>

<?php echo form_open_multipart('admin/add_product'); ?>

<div class="input-block"><label>Product Image:</label><input type="file" name="userfile" size="20" /></div>

<div class="input-block"><?php f_input('name');?></div>

<div class="input-block"><?php f_input('quantity');?></div>

<div class="input-block"><?php f_input('price');?></div>

<div class="input-block">
	<label for="description">Product Description</label>
	<?php echo form_textarea(array('name' => 'description', 'id' => 'description', 'value' => set_value('description'))); ?>
</div>

<?php echo form_submit(array('name' => 'add_product', 'value' => 'Add Product', 'class' => 'fbtn add'));?>

<?php echo form_close();?>

<a href="<?php echo site_url('admin/products/')?>" class="back-btn"><span>Back</span></a>
</div>